The graphic system used. More...
Public Member Functions | |
| GraphicSystem () | |
| ~GraphicSystem () | |
| Renderer * | getRenderSystem () const |
| bool | initialize (ConfigHolder &config) |
| bool | frame () |
| void | shutdown () |
| void | noticeRenderWindowChanged (nkWinUi::GraphicsWindow *win) |
The graphic system used.
This API is a remnant of early component's days and might be moved to the main system.
| nkGraphics::GraphicSystem::GraphicSystem | ( | ) |
Constructor. In theory, should not be called by external code. The system is made available through the MainSystem.
| nkGraphics::GraphicSystem::~GraphicSystem | ( | ) |
Destructor.
| Renderer* nkGraphics::GraphicSystem::getRenderSystem | ( | ) | const |
| bool nkGraphics::GraphicSystem::initialize | ( | ConfigHolder & | config | ) |
Initializes the system, preparing it for framing.
| config | The configuration to initialize from. |
| bool nkGraphics::GraphicSystem::frame | ( | ) |
Frames once.
| void nkGraphics::GraphicSystem::shutdown | ( | ) |
Shuts down the system, and free all its memory. Part of the MainSystem shutdown routine.
| void nkGraphics::GraphicSystem::noticeRenderWindowChanged | ( | nkWinUi::GraphicsWindow * | win | ) |
Used to notify when a window used for rendering changed. This triggers all the logic for resizing internal buffers, and so on.